{% extends 'base.html' %}

{% block content %}
<div class="container mt-4">
    <h2>确认删除课程评价</h2>
    <div class="card mt-3">
        <div class="card-body">
            <p class="lead">您确定要删除以下课程评价吗？</p>
            <p><strong>课程安排:</strong> {{ object.class_schedule }}</p>
            <p><strong>评价等级:</strong> {{ object.get_evaluation_display }}</p>
            <p><strong>评价日期:</strong> {{ object.date }}</p>
            <form method="post">
                {% csrf_token %}
                <button type="submit" class="btn btn-danger">确认删除</button>
                <a href="{% url 'core:class_evaluation_list' object.class_id %}" class="btn btn-outline-secondary ms-2">取消</a>
            </form>
        </div>
    </div>
</div>
{% endblock %}